Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webapp: initialize a react app #49

Merged
merged 18 commits into from
Dec 24, 2024
Merged

webapp: initialize a react app #49

merged 18 commits into from
Dec 24, 2024

Conversation

scriptnull
Copy link
Member

@scriptnull scriptnull commented Dec 21, 2024

closes #42

This PR initializes a react app and embeds it successfully into the gokakashi binary. That way, our gokakashi server can serve the frontend from the same binary.

A blog post about the learnings from here: https://vishnubharathi.codes/blog/baking-a-react-app-into-a-go-server/

This PR also originates this work: #51 (that I would like to tackle in a future point in time)

Running just the webserver

$ WEB_ONLY=1 go run main.go server
2024/12/21 08:17:38 Starting webapp server at :5555
^C
interrupt
2024/12/21 08:17:41 Exiting gokakashi. Bye!

@scriptnull scriptnull marked this pull request as ready for review December 22, 2024 18:29
@scriptnull scriptnull requested a review from ashwiniag December 22, 2024 18:29
@scriptnull
Copy link
Member Author

Going for a merge, feel free to comment if you have any suggestions and I will address in a new PR.

@scriptnull scriptnull merged commit 0261d9b into main Dec 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant